import { BASE_URL } from '@/config';
import { request } from '@/utils/request';

/**
 * 钱包相关接口
 */

// 根据用户ID查询用户零钱账户
export function getUserWallet(customerId: number) {
  return request({
    url: `${BASE_URL}/user/account/customer/${customerId}`,
    method: 'GET'
  });
}

// 根据用户ID和钱包ID查询零钱流水列表
export function getWalletLog(customerId: number, walletId: number) {
  return request({
    url: `${BASE_URL}/user/log/customer/${customerId}/wallet/${walletId}`,
    method: 'GET'
  });
}